var express = require('express');
var router = express.Router();
// var multerUpload = require('../utils/multerfs')
var {
    menuControl,
    submenuControl,
    operatorMenuControl,
    updateOperatorMenuControl,
    sysResourceControl,
    sysAllresourceControl,
    sysResourceUpdateControl,
    getUpdateOperatorMenu,
    sysAllRoleControl,
    sysRolUpdateControl
} = require('../controller/sysController')

router.get('/menu', menuControl);
router.get('/submenu', submenuControl);
router.get('/operator_menu', operatorMenuControl);
router.post('/operator_menu_update', updateOperatorMenuControl);
router.get('/resource', sysResourceControl);
router.get('/allresource', sysAllresourceControl);
router.get('/allrole', sysAllRoleControl);
router.post('/role_update', sysRolUpdateControl);
router.post('/resource_update', sysResourceUpdateControl);
router.post('/add_fathermenu', getUpdateOperatorMenu);

module.exports = router;